Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CIR][NFC] move data member pointer lowering to CXXABI #1130

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

Lancern
Copy link
Member

@Lancern Lancern commented Nov 15, 2024

This PR moves the lowering code for data member pointers from the conversion patterns to the implementation of CXXABI because this part should be ABI-specific.

// the class object containing it, represented as a ptrdiff_t
const clang::TargetInfo &target = LM.getTarget();
unsigned width =
target.getTypeWidth(target.getPtrDiffType(clang::LangAS::Default));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds like this method should be about returning width instead? Answering LLVM type questions at this point sounds like layer violation?

@Lancern Lancern force-pushed the data-member-lowering branch 2 times, most recently from a564ce0 to 02e6c13 Compare November 22, 2024 02:29
Copy link

github-actions bot commented Nov 22, 2024

✅ With the latest revision this PR passed the C/C++ code formatter.

@Lancern Lancern force-pushed the data-member-lowering branch from 02e6c13 to cc18fbf Compare November 22, 2024 03:32
@Lancern
Copy link
Member Author

Lancern commented Nov 22, 2024

Fixed format issues and rebased.

This patch moves the lowering code for data member pointers from the conversion
patterns to the implementation of CXXABI because this part should be ABI-
specific.
@Lancern Lancern force-pushed the data-member-lowering branch from 94f8d28 to e984e58 Compare November 24, 2024 12:45
@bcardosolopes bcardosolopes merged commit 9b73052 into llvm:main Nov 25, 2024
6 checks passed
@Lancern Lancern deleted the data-member-lowering branch November 26, 2024 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants